# !/usr/bin/env python
# -*-coding:utf-8 -*-
"""
# File       : orderlines_enum.py
# Time       ：2023/1/11 21:20
# Author     ：Y-aong
# version    ：python 3.7
# Description：
    流程和任务状态
    Process and task status
"""
import enum


class ProcessStates(enum.Enum):
    green = 'SUCCESS'  # 成功
    red = 'FAILURE'  # 失败
    yellow = 'STOP'  # 停止
    grey = 'PENDING'  # 排队
    blue = "RUNNING"  # 运行
    purple = "PAUSED"  # 暂停
    orange = "TIMEOUT"  # 超时


class TaskStates(enum.Enum):
    grey = 'PENDING'
    blue = 'RUNNING'
    red = 'FAILURE'
    green = 'SUCCESS'
    yellow = 'STOP'
    orange = 'TIMEOUT'
    purple = "PAUSED"  # 暂停


class TaskType(enum.Enum):
    common = 'common'
    process_control = 'process_control'
    group = 'group'
    parallel = 'parallel'
    remote = 'remote'
    start = 'start'
    end = 'end'


class ParamType(enum.Enum):
    """定义参数类型"""
    INPUT = 'input'
    UPLOAD = 'upload'
    SELECT = 'select'
    PASSWORD = 'password'
